package com.sakura.mall.ware.purchaseDetail.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.ware.purchaseDetail.domain.entity.PurchaseDetailEntity;
import com.sakura.mall.ware.purchaseDetail.domain.request.AddPurchaseDetailRequest;
import com.sakura.mall.ware.purchaseDetail.domain.request.UpdatePurchaseDetailRequest;
import com.sakura.mall.ware.purchaseDetail.domain.request.PurchaseDetailPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.ware.purchaseDetail.domain.vo.PurchaseDetailVo;

/**
 *  service
 *
 * @author sakura
 */
public interface PurchaseDetailService extends IService<PurchaseDetailEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<PurchaseDetailVo> queryPage(PurchaseDetailPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddPurchaseDetailRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdatePurchaseDetailRequest request);
}
